#ifndef _FINFO_H_
#define _FINFO_H_

typedef struct {
    char down[64]; // file count
    char mode[64];
    char size[64];
    char sha1[64];
    char name[1024]; // basename
} finfo_t;

// out: 40 char + '\0'
int sha1sum(char *path, char *out);
void show(finfo_t *info);
int get_fileinfo(char *name, finfo_t *info);

#endif
